package com.property.manage.model.parking;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/9/14
 */
@Data
@TableName("t_parking_rent_pay_record")
@ApiModel("车位租金支付记录")
public class ParkingRentPayRecordEntity {

    public static final Byte STATE_NORMAL = 0;

    public static final Byte STATE_DELETED = 1;

    /**
     * 正常收费
     */
    public static final Byte TYPE_NORMAL = 0;

    /**
     * 欠费收取
     */
    public static final Byte TYPE_ARREARS = 1;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer rentId;

    /**
     * 本次实际缴费
     */
    @ApiModelProperty("本次实际缴费")
    private BigDecimal money;

    /**
     * 本次缴费使用的现金
     */
    @ApiModelProperty("本次缴费使用的现金")
    private BigDecimal cash;

    /**
     * 本次缴费使用的预存金额
     */
    @ApiModelProperty("本次缴费使用的预存金额")
    private BigDecimal advance;

    /**
     * 现金结余转存预存的金额
     */
    @ApiModelProperty("现金结余转存预存的金额")
    private BigDecimal advanceReturn;

    /**
     * 缴费后剩余的预存
     */
    @ApiModelProperty("缴费后剩余的预存")
    private BigDecimal advanceRemain;

    private LocalDateTime payTime;

    private String payType;

    @ApiModelProperty("收款人")
    private String payee;

    private String remark;

    @ApiModelProperty("票据编号")
    private String billNo;

    private Byte type;

    private Byte state;

}
